public class Administrator extends User implements HaveName {

    private String name = "未设置";

    public Administrator() {
    }

    public Administrator(String userName, String password) {
        super(userName, password);
    }

    public Administrator(String userName, String password, String name) {
        super(userName, password);
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }
    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return  "Administrator{"+ super.toString() +
                ", name='" + name + '\'' +
                '}' ;
    }
}
